﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using NNote.DocumentModel;
using Liquid.Windows.Commands;

namespace NNote {
	public abstract class DocumentViewBase : Control, IDocumentViewer {
		public DocumentViewBase(Document document) {
			this.Document = document;
			if (document.CurrentViewer != null)
				throw new NotSupportedException();
			document.CurrentViewer = this;
		}

		public Document Document { get; private set; }

		protected internal virtual void OnSettingsChanged() { }
	}
}
